/*
 * socket_exception.h
 *
 *  Created on: 2008-11-27
 *      Author: ant
 */

#ifndef SOCKET_EXCEPTION_H_
#define SOCKET_EXCEPTION_H_

#include "bits/system_exception.h"

BEGIN_NAMESPACE_TOXIC

class SocketException : public SystemException {
public:
	SocketException()
	:SystemException(detail::lastNetworkError()) {
	}

	SocketException(const string& what)
	:SystemException(what) {
	}
};

END_NAMESPACE_TOXIC

#endif /* SOCKET_EXCEPTION_H_ */
